﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Think.Lenovo.Com.Models.Users;

namespace Think.Lenovo.Com
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            #region//判断登录
            try
            {
                ViewUserModel model = (ViewUserModel)Session["User"];
                if (model != null)
                {
                    if (model.Id < 1)
                    {
                        Response.Redirect("/Login/Index");
                    }
                }
                else {
                    Response.Redirect("/Login/Index");
                }
            }
            catch 
            {
                Response.Redirect("/Login/Index");
            }
            #endregion
        }
    }
}